<?php
chdir("../");
header("content-type: text/html; charset=utf-8");
require "../config/config.php";
require "../config/attributes.php";
require GALAXYTOOL_ROOT."/secret/includes/authorization.inc.php";
session_start();
$NO_PAGE_FORWARD = true;
require GALAXYTOOL_ROOT."/secret/includes/logincheck.inc.php";
if (isset($error_page_code) && $error_page_code == "timeout") exit("");

Galaxytool::load_language_file($_SESSION['lang']);

$version = VERSION;
$latest_version = @file_get_contents("http://www.galaxietool.de/version.txt");

if (isset($latest_version)) {
	if (isset($latest_version) && !empty($latest_version) && (("v".$latest_version) != $version)) {
		echo INDEX_VERSION.':&nbsp;<a href="http://www.galaxytool.eu/" class="external_link" target="external">'.$latest_version."</a>\n";
	} else {
		echo INDEX_LATEST_VERSION."\n";
	}
}